package com.balabala.gym_system.api;

import com.balabala.gym_system.pojo.entity.Advertising;
import com.balabala.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Author:zl
 * Date:2023/5/6 21:47
 */
@FeignClient(value = "gym-system-service",contextId = "advertisingFeign")
//根据id查找轮播图
public interface AdvertisingFeignClient {
    @GetMapping("/admin/Advertising/{id}")
    public Result<Advertising> findById(@RequestParam @PathVariable("id")Long id);
}
